Reversing the Arrow? Economic Inequality's Effect on Religiosity

Replication Materials

Contents
relig_chapter.do: 	the main analysis file.  It combines data on church attendance from many national and cross-national surveys and performs VAR analyses of the entire sample as well as of only the U.S. and Germany that take into account the fact that some observations are estimated through multiple imputation.  The file path in line 6 will need to be modified to match that on your machine.
relig_chapter.R:		called by relig_chapter.do to multiply impute via loess the missing data in each country's time series of church attendance
relig_chapter2.R:	called by relig_chapter.do to generate dot-whisker graphs of the results
plotReg.R:		code written by Kastellec and Leoni (2007), called by relig_chapter2.R

Because the raw data employed are many surveys on church attendance that are archived elsewhere, two intermediate datasets are included:

trend00.dta:		the summarized church attendance data (percentage of respondents reporting that they attend church weekly for all countries and years in the collected surveys)

trend2.csv:		the data of trend00, excluding particularly short series (see relig_chapter.do), merged with inequality data from the SWIID and GDPpc data from the Penn World Tables.  This file will allow relig_chapter.do to run from line 607 to completion.

